home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / gina15.zip / Makefile < prev    next >
Makefile  |  1992-02-27  |  3KB  |  98 lines

  1. #       @(#)Makefile    1.21 2/27/92
  2. #       Main Makefile for GINA++
  3. ############################################################################
  4.  
  5. SCCS_SUBDIRS = include/Gina basic widgets src demos demos/gredit demos/sleuth \
  6. bitmaps sample doc doc/ug doc/ur emacs-library
  7.  
  8. SCCS_DIRS = . $(SCCS_SUBDIRS)
  9.  
  10. DIRECTORIES = include $(SCCS_SUBDIRS)
  11. SCCS_MASTER = /vol/gina/GINA++/master
  12.  
  13. TAR_DEVICE = ../GINA++1.4.tar
  14. TAR_IGNORE = TAR_IGNORE
  15.  
  16. CPLUS        = /vol/lang/CC
  17. CC              = /usr/bin/cc
  18.  
  19. # Gina include files
  20. OWNDIR        = -I../include
  21.  
  22. #include files for compilation in the yp domain F3SERVER
  23. CCDIR        = -I/vol/lang/SC1.0/include/CC
  24. MOTIFDIR    = -I/vol/motif/include
  25.  
  26. #libs for compilation in the yp domain F3SERVER
  27. LIBPATH        = -L/vol/motif/lib
  28.  
  29. install: contracts_lib debug_lib normal_lib install_demos
  30.  
  31. contracts_lib: 
  32.     (cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  33.          CFLAGS="-c -DGINA_DEBUG" CPPFLAGS="" LDFLAGS="" \
  34.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
  35.          GARCHIVE="libGINA_d.a")
  36.  
  37. debug_lib: 
  38.     (cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  39.          CFLAGS="-c -g -DGINA_DEBUG" CPPFLAGS="" LDFLAGS="-g" \
  40.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
  41.          GARCHIVE="libGINA_dg.a")
  42.  
  43. normal_lib:
  44.     (cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  45.          CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
  46.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
  47.          GARCHIVE="libGINA.a")
  48.  
  49. install_demos:
  50.     (cd demos; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  51.          CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
  52.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
  53.     (cd demos/gredit; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  54.          CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
  55.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
  56.     (cd demos/sleuth; make install CPLUS="$(CPLUS)" CC="$(CC)" \
  57.          CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
  58.          CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
  59.  
  60. sccs_command:
  61.     for dir in $(SCCS_DIRS); do \
  62.         (cd $$dir; \
  63.          echo -n "./$$dir: "; \
  64.          sccs $(SCCS_COMMAND) ) \
  65.     done
  66.  
  67. sccs_info:
  68.     make sccs_command SCCS_COMMAND=info
  69.  
  70. tar:
  71.     tar cvFFhXf $(TAR_IGNORE) $(TAR_DEVICE) ./*
  72.  
  73. tags:
  74.     /vol/emacs.sun4/bin/etags include/Gina/*.h widgets/*.C src/*.C demos
  75.  
  76. bootstrap:
  77.     -sccs get SCCS
  78.     -mkdir $(DIRECTORIES)
  79.     for dir in $(SCCS_SUBDIRS); do \
  80.         (cd $$dir; \
  81.          ln -s $(SCCS_MASTER)/$$dir/SCCS SCCS; \
  82.          sccs get SCCS; \
  83.          if test -f Makefile.SCCS; then \
  84.         mv Makefile.SCCS Makefile; \
  85.          fi) \
  86.     done
  87.  
  88. sccsremove:
  89.     find . -name SCCS -print -exec rm '{}' \;
  90.  
  91. clean:
  92.     (cd basic; make clean)
  93.     (cd widgets; make clean)
  94.     (cd src; make clean)
  95.     (cd demos; make clean)
  96.     (cd demos/sleuth; make clean)
  97.     (cd demos/gredit; make clean)
  98.